- content_for :title do
  = t('.sign_up')

.row.my-3
  .col-md-6.order-12.order-sm-1
    == render 'devise/shared/intro'
  .col-md-6.order-1.order-sm-12.mb-4
    - if Setting.registrations_enabled
      .card
        .card-header
          h3.card-title = t('.sign_up')
        .card-body
          .row
            .auth-form.col-md-6
              = simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
                == render "devise/shared/error_messages", resource: resource

                = f.input :username,
                          required: true,
                          autofocus: true,
                          hint: '',
                          input_html: { autocomplete: "username", class: 'form-control' }
                = f.input :email,
                          required: true,
                          autofocus: true,
                          hint: '',
                          input_html: { autocomplete: "email", class: 'form-control' }
                = f.input :password,
                          required: true,
                          hint: t('devise.shared.minimum_password_length', count: @minimum_password_length),
                          input_html: { autocomplete: "new-password" }
                = f.input :password_confirmation,
                          required: true,
                          input_html: { autocomplete: "new-password" }

                = f.button :submit, t('.register'), class: 'w-100'
            .auth-providers.col-md-6
              == render 'devise/shared/links'
    - else
      .card.card-outline.card-warning
        .card-header.card-border
          h3.card-title = t('.error')
        .card-body = t('.register_closed')
